//
//  RegViewController.swift
//  amicoolView
//
//  Created by wr on 2017/5/31.
//  Copyright © 2017年 wr. All rights reserved.
//

import UIKit

class RegViewController: UIViewController {

    @IBOutlet weak var ps1TextField: UITextField!
    @IBOutlet weak var userTextField: UITextField!
    @IBOutlet weak var ps2TextField: UITextField!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

   
    @IBAction func save(_ sender: UIBarButtonItem) {
        if self.userTextField.text != ""{
            if self.ps1TextField.text != ""{
                if self.ps1TextField.text == ps2TextField.text{
                    
                }else{
                    
                }
            }
            else{
                
            }
        }
        else{
            
        }
        
    }
    
    @IBAction func cancle(_ sender: UIBarButtonItem) {
        self.dismiss(animated: true, completion: nil)
        
    }
    
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
